package org.lingshi.common.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum BusCodeEnum {

    SUCCESS(200,"success"),

    SYSTEM_ERROR(500,"系统异常"),

    PARAMETER_ERROR(1001,"请求参数异常"),

    LOGIN_ERROR(1003,"登录失败"),

    NOT_LOGIN_ERROR(401,"未登录"),

    DELETE_PRODUCT_TYPE_ERROR(1004,"删除商品分类失败"),

    INSERT_OR_UPDATE_PRODUCT_TYPE_ERROR(1004,"插入或更新商品分类失败"),

    FILE_UPLOAD_ERROR(1004,"文件上传失败"),

    DELETE_PARAMETER_ERROR(1002,"删除失败");

    private Integer code;
    private String message;

}
